package com.batchengine.rssfeed.util;

/**
 * Created by sunil.kalva@mkhoj.com.
 * User: sunil.kalva
 * Date: Dec 6, 2009
 */
public class ReadTest {

    public static void main(String[] args) {
//        RSSFeedParser parser = new RSSFeedParser("http://rss.news.yahoo.com/rss/topstories");
        RSSFeedParserSTAX parser = new RSSFeedParserSTAX("http://mobile.reuters.com/reuters/rss/TECH.xml");
        Feed feed = parser.readFeed();
        System.out.println(feed);
        for(FeedMessage message : feed.getMessages()) {
            System.out.println(message);
        }
    }
}

